/*
 * @Author: zcy
 * @Date: 2025-02-19 13:39:58
 * @LastEditTime: 2025-02-22 15:32:37
 * @LastEditors: zcy
 * @FilePath: \pokemon-project\postcss.config.js
 * @Description:
 */
// postcss.config.js
// import postcssPxToViewport from 'postcss-px-to-viewport';

export default {
  plugins: {
    'postcss-pxtorem': {
      rootValue: 37.5, // 1rem = 37.5px (375/10)
      propList: ['*'], // 转换全部css属性
      selectorBlackList: [
        // 不转换的选择器
        'no-rem-',
        /(^|\.)vant(-\w+)?$/, // 防止Vant组件被二次转换
      ],
      exclude: /node_modules/i,
    },
  },
}
